<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><TITLE
>DPGEN_SFFT</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE=" GenLib User's Manual "
HREF="genlib.html"><LINK
REL="UP"
TITLE="Alliance - genlib User's Manual "
HREF="ref_genlib.html"><LINK
REL="PREVIOUS"
TITLE="DPGEN_SFF"
HREF="man_dpgen_sff.html"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GenLib User's Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="man_dpgen_sff.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
>&nbsp;</TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="DPGEN-SFFT"
></A
>DPGEN_SFFT</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3435"
></A
><H2
>Name</H2
> DPGEN_SFFT &nbsp;--&nbsp; Static Flip-Flop with Scan-Path Macro-Generator </DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3438"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3439"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include  &#60;genlib.h&#62;</PRE
></TD
></TR
></TABLE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void <TT
CLASS="FUNCTION"
>GENLIB_MACRO</TT
></CODE
>(DPGEN_SFFT, char *<TT
CLASS="PARAMETER"
><I
>modelname</I
></TT
>, long <TT
CLASS="PARAMETER"
><I
>flags</I
></TT
>, long <TT
CLASS="PARAMETER"
><I
>N</I
></TT
>);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3451"
></A
><H2
> Description </H2
><P
> Generate a <VAR
CLASS="REPLACEABLE"
>N</VAR
> bits static flip-flop with scan-path
    named <VAR
CLASS="REPLACEABLE"
>modelname</VAR
>. The two latches of this flip-flop are
    i.e. each one is made of two interters looped togethers.
    </P
><P
> How it works :
    <P
></P
><UL
><LI
><P
> <TT
CLASS="LITERAL"
>scan</TT
> when set to <TT
CLASS="LITERAL"
>'1'</TT
> enables the scan-path mode.
        Note that in scan-path mode, the <TT
CLASS="LITERAL"
>wen</TT
> signal is not effective.
        </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>scin</TT
> : the input of the scan-path. This terminal is
        different from <TT
CLASS="LITERAL"
>i0[0]</TT
>.
        </P
><P
> The <TT
CLASS="LITERAL"
>scout</TT
> is <TT
CLASS="LITERAL"
>q[N-1]</TT
> (in the following
        example this is <TT
CLASS="LITERAL"
>q[31]</TT
>).
        </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>wen</TT
> when set to <TT
CLASS="LITERAL"
>'1'</TT
> enables the writing of the
        flip-flop.
        </P
></LI
></UL
>
    </P
><DIV
CLASS="REFSECT2"
><A
NAME="AEN3475"
></A
><H3
> Terminal Names </H3
><P
></P
><OL
TYPE="1"
><LI
><P
> <TT
CLASS="LITERAL"
>scan</TT
> : scan-path mode (input, 1 bit). </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>scin</TT
> : scan path in (input, 1 bit). </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>wen</TT
> : write enable (input, 1 bit). </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>ck</TT
> : clock signal (input, 1 bit). </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>i0</TT
> : data input (<VAR
CLASS="REPLACEABLE"
>N</VAR
> bits). </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>q</TT
> : output (<VAR
CLASS="REPLACEABLE"
>N</VAR
> bits). </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>vdd</TT
> : power. </P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>vss</TT
> : ground. </P
></LI
></OL
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3504"
></A
><H2
> Example </H2
><P
>    <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>GENLIB_MACRO(DPGEN_SFFT, "model_sfft_32"
                       , F_BEHAV|F_PLACE
                       , 32
                       );

GENLIB_LOINS( "model_sfft_32"
            , "instance1_sfft_32"
            , "scan"
            , "scin"
            , "wen"
            , "ck"
            , "i0[31:0]"
            ,  "q[31:0]"  /* a[31] is "scout". */
            , "vdd", "vss", NULL
            );
    </PRE
></TD
></TR
></TABLE
>
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3508"
></A
><H2
>See Also</H2
><P
>      <A
HREF="man_genlib_macro.html"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>GENLIB_MACRO</SPAN
>(3)</SPAN
></A
>,
      <A
HREF="man_genlib.html"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>genlib</SPAN
>(1)</SPAN
></A
>
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="man_dpgen_sff.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="genlib.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>DPGEN_SFF</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref_genlib.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>&nbsp;</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>